import request from '@/utils/request'

export function page(data) {
  return request({
    url: '/api/blog/menu/page',
    method: 'post',
    data
  })
}

export function loadfirst() {
  return request({
    url: '/api/blog/menu/loadfirst',
    method: 'get'
  })
}
export function addorupdate(data) {
  return request({
    url: '/api/blog/menu/addorupdate',
    method: 'post',
    data
  })
}
export function deletemenu(id) {
  return request({
    url: '/api/blog/menu/delete?id=' + id,
    method: 'delete'

  })
}
